package com.ds.api.model;

import java.io.Serializable;
import java.util.Date;

public class UserLoginThirdTokens implements Serializable {
    private Integer uid;

    private String wxOpenid;

    private String wxAccessToken;

    private String wxRefreshToken;

    private String wxExpiresIn;

    private String qqOpenid;

    private String qqAccessToken;

    private String qqExpiresIn;

    private Integer fkUserBasicinfoUid;

    private String nickName;

    private String headimgurl;

    private Date lmd;

    private String phone;

    private static final long serialVersionUID = 1L;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid == null ? null : wxOpenid.trim();
    }

    public String getWxAccessToken() {
        return wxAccessToken;
    }

    public void setWxAccessToken(String wxAccessToken) {
        this.wxAccessToken = wxAccessToken == null ? null : wxAccessToken.trim();
    }

    public String getWxRefreshToken() {
        return wxRefreshToken;
    }

    public void setWxRefreshToken(String wxRefreshToken) {
        this.wxRefreshToken = wxRefreshToken == null ? null : wxRefreshToken.trim();
    }

    public String getWxExpiresIn() {
        return wxExpiresIn;
    }

    public void setWxExpiresIn(String wxExpiresIn) {
        this.wxExpiresIn = wxExpiresIn == null ? null : wxExpiresIn.trim();
    }

    public String getQqOpenid() {
        return qqOpenid;
    }

    public void setQqOpenid(String qqOpenid) {
        this.qqOpenid = qqOpenid == null ? null : qqOpenid.trim();
    }

    public String getQqAccessToken() {
        return qqAccessToken;
    }

    public void setQqAccessToken(String qqAccessToken) {
        this.qqAccessToken = qqAccessToken == null ? null : qqAccessToken.trim();
    }

    public String getQqExpiresIn() {
        return qqExpiresIn;
    }

    public void setQqExpiresIn(String qqExpiresIn) {
        this.qqExpiresIn = qqExpiresIn == null ? null : qqExpiresIn.trim();
    }

    public Integer getFkUserBasicinfoUid() {
        return fkUserBasicinfoUid;
    }

    public void setFkUserBasicinfoUid(Integer fkUserBasicinfoUid) {
        this.fkUserBasicinfoUid = fkUserBasicinfoUid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName == null ? null : nickName.trim();
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl == null ? null : headimgurl.trim();
    }

    public Date getLmd() {
        return lmd;
    }

    public void setLmd(Date lmd) {
        this.lmd = lmd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserLoginThirdTokens other = (UserLoginThirdTokens) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getWxOpenid() == null ? other.getWxOpenid() == null : this.getWxOpenid().equals(other.getWxOpenid()))
            && (this.getWxAccessToken() == null ? other.getWxAccessToken() == null : this.getWxAccessToken().equals(other.getWxAccessToken()))
            && (this.getWxRefreshToken() == null ? other.getWxRefreshToken() == null : this.getWxRefreshToken().equals(other.getWxRefreshToken()))
            && (this.getWxExpiresIn() == null ? other.getWxExpiresIn() == null : this.getWxExpiresIn().equals(other.getWxExpiresIn()))
            && (this.getQqOpenid() == null ? other.getQqOpenid() == null : this.getQqOpenid().equals(other.getQqOpenid()))
            && (this.getQqAccessToken() == null ? other.getQqAccessToken() == null : this.getQqAccessToken().equals(other.getQqAccessToken()))
            && (this.getQqExpiresIn() == null ? other.getQqExpiresIn() == null : this.getQqExpiresIn().equals(other.getQqExpiresIn()))
            && (this.getFkUserBasicinfoUid() == null ? other.getFkUserBasicinfoUid() == null : this.getFkUserBasicinfoUid().equals(other.getFkUserBasicinfoUid()))
            && (this.getNickName() == null ? other.getNickName() == null : this.getNickName().equals(other.getNickName()))
            && (this.getHeadimgurl() == null ? other.getHeadimgurl() == null : this.getHeadimgurl().equals(other.getHeadimgurl()))
            && (this.getLmd() == null ? other.getLmd() == null : this.getLmd().equals(other.getLmd()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getWxOpenid() == null) ? 0 : getWxOpenid().hashCode());
        result = prime * result + ((getWxAccessToken() == null) ? 0 : getWxAccessToken().hashCode());
        result = prime * result + ((getWxRefreshToken() == null) ? 0 : getWxRefreshToken().hashCode());
        result = prime * result + ((getWxExpiresIn() == null) ? 0 : getWxExpiresIn().hashCode());
        result = prime * result + ((getQqOpenid() == null) ? 0 : getQqOpenid().hashCode());
        result = prime * result + ((getQqAccessToken() == null) ? 0 : getQqAccessToken().hashCode());
        result = prime * result + ((getQqExpiresIn() == null) ? 0 : getQqExpiresIn().hashCode());
        result = prime * result + ((getFkUserBasicinfoUid() == null) ? 0 : getFkUserBasicinfoUid().hashCode());
        result = prime * result + ((getNickName() == null) ? 0 : getNickName().hashCode());
        result = prime * result + ((getHeadimgurl() == null) ? 0 : getHeadimgurl().hashCode());
        result = prime * result + ((getLmd() == null) ? 0 : getLmd().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", wxOpenid=").append(wxOpenid);
        sb.append(", wxAccessToken=").append(wxAccessToken);
        sb.append(", wxRefreshToken=").append(wxRefreshToken);
        sb.append(", wxExpiresIn=").append(wxExpiresIn);
        sb.append(", qqOpenid=").append(qqOpenid);
        sb.append(", qqAccessToken=").append(qqAccessToken);
        sb.append(", qqExpiresIn=").append(qqExpiresIn);
        sb.append(", fkUserBasicinfoUid=").append(fkUserBasicinfoUid);
        sb.append(", nickName=").append(nickName);
        sb.append(", headimgurl=").append(headimgurl);
        sb.append(", lmd=").append(lmd);
        sb.append(", phone=").append(phone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}